home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ShareWare OnLine 2
/
ShareWare OnLine Volume 2 (CMS Software)(1993).iso
/
util1
/
exc23.zip
/
EXC.V21
< prev
next >
Wrap
Text File
|
1993-04-07
|
1KB
|
25 lines
EXC version 2.1 modifications:
1. Recompiled EXC in 8086/8088 code so that it could be used on XT class
machines. Performance impact on 286 and above processors is negligible.
2. Added a parameter to the QUIT instruction. Normally on exit, EXC returns
the return code of the executed program. If a number (0-255) is
specified with the QUIT command, that value is returned as the DOS
ERRORLEVEL return code instead of what was passed from the spawned
program.
An example of why you would want to set a return code:
I use EXC to control PROCOMM PLUS to execute a script that synchro-
nizes my clock with the Naval Observatory. I need to know if it
fails.
I can detect the error with my EXC script, but when I exit PCPLUS,
PCPLUS always returns a return code of 255. Using the QUIT nn format,
I can set a return code of 1 on error and 0 when there is no error.
3. After a PRTSC key mnemonic was executed, the script processor failed
to continue to the next line and terminated at that point.